|
|
|
|
|
|
|
Figure 21.6.
Adding the controls to call another ActiveX document passing
it an argument. |
|
|
|
|
|
|
|
|
Now add the code in Listing 21.2 to the first document's code. |
|
|
|
|
|
|
|
|
LISTING 21.2. PROPCODE.TXTTHE CALLING DOCUMENT WILL SET ITS PROPERTIES. |
|
|
|
 |
|
|
|
|
1: Public docBag As docMainFrm
2:
3: Private Sub cmdCallNext_Click ()
4: Set docBag = Me add the reference to this document
5: Hyperlink.NavigateToC:\Temp\docSecondFrm
6: End Sub
7: Public Property Get strProp() As String
8: strProp = Text1.Text
9: End Property
10:
11: Public Property Let strProp(ByVal _
12: NewStrProp As String)
13: Text1.Text = NewStrDocProp
14: End Property |
|
|
|
|
|
|
|
|
Then add another UserDocument to the project using the normal Visual Basic procedures and put one text box on the form. Then add the code in Listing 21.3. |
|
|
|
|
|